<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>享元模式</title>
  <link href="./favicon.ico" rel="shortcut icon">
</head>
<body>
  <ul class="list">
    <li>共享内存(避免内存开销，而非考虑效率)</li>
    <li>相同的数据，共享使用(网页事件代理)</li>
    <li>将相同的部分抽象出来，符合开放封闭原则(OCP)</li>
  </ul>
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</body>
</html>